/**
 * Generate time : 2011-11-15 4:24:35
 * Version : 1.0.1.V20070717
 */
package com.baosight.sczx.zm.cl.domain;

import com.baosight.iplat4j.util.NumberUtils;
import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;

/**
 * ZMCLTernateTrainingRecord table comment : *培训情况记录
 */
public class ZMCLTernateTrainingRecord extends DaoEPBase {

	private String fdKeyId = " "; /* 主键 */
	private String fdTernateRecordId = " "; /* 三违记录ID */
	private String fdDepartmentId = " "; /* 主办单位 */
	private String fdTrainingStatus = " "; /* 培训状态 */
	private String fdTrainingStarttime = " "; /* 开始时间 */
	private String fdTrainingEndtime = " "; /* 结束时间 */
	private Float fdClasstime = new Float(0); /* 合计课时 */
	private String fdTrainingPlace = " "; /* 培训地点 */
	private String fdMethod = " "; /* 学习方式 */
	private String fdTeacher = " "; /* 培训讲师 */
	private String fdTrainingResult = " "; /* 培训结果 */

	/**
	 * initialize the metadata
	 */
	public void initMetaData() {
		EiColumn eiColumn;

		eiColumn = new EiColumn("fdKeyId");
		eiColumn.setPrimaryKey(true);
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("主键");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdTernateRecordId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("三违记录ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdDepartmentId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("主办单位");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdTrainingStatus");
		eiColumn.setFieldLength(10);
		eiColumn.setDescName("培训状态");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdTrainingStarttime");
		eiColumn.setFieldLength(19);
		eiColumn.setDescName("开始时间");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdTrainingEndtime");
		eiColumn.setFieldLength(19);
		eiColumn.setDescName("结束时间");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdClasstime");
		eiColumn.setType("N");
		eiColumn.setScaleLength(1);
		eiColumn.setFieldLength(5);
		eiColumn.setDescName("合计课时");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdTrainingPlace");
		eiColumn.setFieldLength(200);
		eiColumn.setDescName("培训地点");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdMethod");
		eiColumn.setFieldLength(50);
		eiColumn.setDescName("学习方式");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdTeacher");
		eiColumn.setFieldLength(50);
		eiColumn.setDescName("培训讲师");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdTrainingResult");
		eiColumn.setFieldLength(500);
		eiColumn.setDescName("培训结果");
		eiMetadata.addMeta(eiColumn);

	}

	/**
	 * the constructor
	 */
	public ZMCLTernateTrainingRecord() {
		initMetaData();
	}

	/**
	 * get the fdKeyId - 主键
	 * 
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}

	/**
	 * set the fdKeyId - 主键
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}

	/**
	 * get the fdTernateRecordId - 三违记录ID
	 * 
	 * @return the fdTernateRecordId
	 */
	public String getFdTernateRecordId() {
		return this.fdTernateRecordId;
	}

	/**
	 * set the fdTernateRecordId - 三违记录ID
	 */
	public void setFdTernateRecordId(String fdTernateRecordId) {
		this.fdTernateRecordId = fdTernateRecordId;
	}

	/**
	 * get the fdDepartmentId - 主办单位
	 * 
	 * @return the fdDepartmentId
	 */
	public String getFdDepartmentId() {
		return this.fdDepartmentId;
	}

	/**
	 * set the fdDepartmentId - 主办单位
	 */
	public void setFdDepartmentId(String fdDepartmentId) {
		this.fdDepartmentId = fdDepartmentId;
	}

	/**
	 * get the fdTrainingStatus - 培训状态
	 * 
	 * @return the fdTrainingStatus
	 */
	public String getFdTrainingStatus() {
		return this.fdTrainingStatus;
	}

	/**
	 * set the fdTrainingStatus - 培训状态
	 */
	public void setFdTrainingStatus(String fdTrainingStatus) {
		this.fdTrainingStatus = fdTrainingStatus;
	}

	/**
	 * get the fdTrainingStarttime - 开始时间
	 * 
	 * @return the fdTrainingStarttime
	 */
	public String getFdTrainingStarttime() {
		return this.fdTrainingStarttime;
	}

	/**
	 * set the fdTrainingStarttime - 开始时间
	 */
	public void setFdTrainingStarttime(String fdTrainingStarttime) {
		this.fdTrainingStarttime = fdTrainingStarttime;
	}

	/**
	 * get the fdTrainingEndtime - 结束时间
	 * 
	 * @return the fdTrainingEndtime
	 */
	public String getFdTrainingEndtime() {
		return this.fdTrainingEndtime;
	}

	/**
	 * set the fdTrainingEndtime - 结束时间
	 */
	public void setFdTrainingEndtime(String fdTrainingEndtime) {
		this.fdTrainingEndtime = fdTrainingEndtime;
	}

	/**
	 * get the fdClasstime - 合计课时
	 * 
	 * @return the fdClasstime
	 */
	public Float getFdClasstime() {
		return this.fdClasstime;
	}

	/**
	 * set the fdClasstime - 合计课时
	 */
	public void setFdClasstime(Float fdClasstime) {
		this.fdClasstime = fdClasstime;
	}

	/**
	 * get the fdTrainingPlace - 培训地点
	 * 
	 * @return the fdTrainingPlace
	 */
	public String getFdTrainingPlace() {
		return this.fdTrainingPlace;
	}

	/**
	 * set the fdTrainingPlace - 培训地点
	 */
	public void setFdTrainingPlace(String fdTrainingPlace) {
		this.fdTrainingPlace = fdTrainingPlace;
	}

	/**
	 * get the fdMethod - 学习方式
	 * 
	 * @return the fdMethod
	 */
	public String getFdMethod() {
		return this.fdMethod;
	}

	/**
	 * set the fdMethod - 学习方式
	 */
	public void setFdMethod(String fdMethod) {
		this.fdMethod = fdMethod;
	}

	/**
	 * get the fdTeacher - 培训讲师
	 * 
	 * @return the fdTeacher
	 */
	public String getFdTeacher() {
		return this.fdTeacher;
	}

	/**
	 * set the fdTeacher - 培训讲师
	 */
	public void setFdTeacher(String fdTeacher) {
		this.fdTeacher = fdTeacher;
	}

	/**
	 * get the fdTrainingResult - 培训结果
	 * 
	 * @return the fdTrainingResult
	 */
	public String getFdTrainingResult() {
		return this.fdTrainingResult;
	}

	/**
	 * set the fdTrainingResult - 培训结果
	 */
	public void setFdTrainingResult(String fdTrainingResult) {
		this.fdTrainingResult = fdTrainingResult;
	}

	/**
	 * get the value from Map
	 */
	@SuppressWarnings("rawtypes")
	public void fromMap(Map map) {

		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdTernateRecordId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdTernateRecordId")), fdTernateRecordId));
		setFdDepartmentId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDepartmentId")), fdDepartmentId));
		setFdTrainingStatus(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdTrainingStatus")), fdTrainingStatus));
		setFdTrainingStarttime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdTrainingStarttime")), fdTrainingStarttime));
		setFdTrainingEndtime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdTrainingEndtime")), fdTrainingEndtime));
		setFdClasstime(NumberUtils.toFloat(StringUtils.toString(map.get("fdClasstime")), fdClasstime));
		setFdTrainingPlace(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdTrainingPlace")), fdTrainingPlace));
		setFdMethod(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMethod")), fdMethod));
		setFdTeacher(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdTeacher")), fdTeacher));
		setFdTrainingResult(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdTrainingResult")), fdTrainingResult));
	}

	/**
	 * set the value to Map
	 */
	@SuppressWarnings({ "rawtypes", "unchecked" })
	public Map toMap() {

		Map map = new HashMap();
		map.put("fdKeyId", StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));
		map.put("fdTernateRecordId", StringUtils.toString(fdTernateRecordId, eiMetadata.getMeta("fdTernateRecordId")));
		map.put("fdDepartmentId", StringUtils.toString(fdDepartmentId, eiMetadata.getMeta("fdDepartmentId")));
		map.put("fdTrainingStatus", StringUtils.toString(fdTrainingStatus, eiMetadata.getMeta("fdTrainingStatus")));
		map.put("fdTrainingStarttime", StringUtils.toString(fdTrainingStarttime, eiMetadata.getMeta("fdTrainingStarttime")));
		map.put("fdTrainingEndtime", StringUtils.toString(fdTrainingEndtime, eiMetadata.getMeta("fdTrainingEndtime")));
		map.put("fdClasstime", StringUtils.toString(fdClasstime, eiMetadata.getMeta("fdClasstime")));
		map.put("fdTrainingPlace", StringUtils.toString(fdTrainingPlace, eiMetadata.getMeta("fdTrainingPlace")));
		map.put("fdMethod", StringUtils.toString(fdMethod, eiMetadata.getMeta("fdMethod")));
		map.put("fdTeacher", StringUtils.toString(fdTeacher, eiMetadata.getMeta("fdTeacher")));
		map.put("fdTrainingResult", StringUtils.toString(fdTrainingResult, eiMetadata.getMeta("fdTrainingResult")));

		return map;

	}
}